package com.ls.aop.chain;

public abstract class Handler {

	private Chain chain;

	public Handler(Chain chain) {
		this.chain = chain;
	}

	public final void hand() {
		beforeProcess();
		chain.process();
		afterProcess();
	}

	abstract protected void beforeProcess();

	abstract protected void afterProcess();
}
